package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;

import java.util.List;


public interface SpuService extends IService<Spu> {

    PageDTO<SpuDTO> pageQuery(Integer page, Integer rows, Long id, Long cid, Long bid, Boolean saleable);


    List<SpecParamDTO> queryParam(Long id, Boolean searching);

    void modifySaleable(Long id, Boolean saleable);

    SpuDTO queryGoodsById(Long id);

    SpuDTO  querySpuById(Long id);
}